/*
 * @Author: zhangzao
 * @Date: 2024-12-12 14:10:21
 * @LastEditors: zhangzao
 * @LastEditTime: 2024-12-12 14:43:43
 * @Description: 请填写简介
 * @FilePath: /tobeno1/src/api/chatroom.js
 */
import request from "@/utils/request";

// 查询选手聊天室列表
export function listChatRoom(query) {
  return request({
    url: "/chatRoom/list",
    method: "get",
    params: query,
  });
}

// 查询单个选手聊天室
export function selectOneChatRoom(id) {
  return request({
    url: "/chatRoom/selectOne",
    method: "get",
    params: { id },
  });
}

// 新增选手聊天室
export function addChatRoom(data) {
  return request({
    url: "/chatRoom/add",
    method: "post",
    data: data,
  });
}

// 修改选手聊天室
export function editChatRoom(data) {
  return request({
    url: "/chatRoom/edit",
    method: "post",
    data: data,
  });
}

// 删除选手聊天室
export function deleteChatRoom(ids) {
  return request({
    url: "/chatRoom/delete",
    method: "post",
    data: ids,
  });
}

// 上传选手聊天室
export function uploadChatRoom(data) {
  return request({
    url: "/chatRoom/uploadChatRoom",
    method: "post",
    data: data,
  });
}
